﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System;
using System.ComponentModel.DataAnnotations;

namespace CPPProject.CPP.Dto
{
    [AutoMapFrom(typeof(CPPCompany))]
    public class CPPCompanyDto : EntityDto<long>
    {
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 公司名称
        /// </summary>
        [MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 联系地址
        /// </summary>
        [Required]
        [MaxLength(500)]
        public string Address { get; set; }
        /// <summary>
        /// 联系地址2
        /// </summary>
        [MaxLength(500)]
        public string Address2 { get; set; }
        /// <summary>
        /// 联系地址3
        /// </summary>
        [MaxLength(500)]
        public string Address3 { get; set; }
        /// <summary>
        /// 联系人1
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Contactor { get; set; }
        /// <summary>
        /// 联系人2
        /// </summary>
        [MaxLength(50)]
        public string Contactor2 { get; set; }
        /// <summary>
        /// 联系人3
        /// </summary>
        [MaxLength(50)]
        public string Contactor3 { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Telphone { get; set; }
        /// <summary>
        /// 联系电话2
        /// </summary>
        [MaxLength(50)]
        public string Telphone2 { get; set; }
        /// <summary>
        /// 联系电话3
        /// </summary>
        [MaxLength(50)]
        public string Telphone3 { get; set; }
    }
}
